package com.emex.app.shared.data;

import java.util.Date;

public class Cost {
    private Integer id;

    private Double summa;

    private Integer payMethod;

    private Date date;

    private Integer costTypeId;

    private String comment;

    public Cost(Integer id, Double summa, Integer payMethod, Date date, Integer costTypeId, String comment) {
        this.id = id;
        this.summa = summa;
        this.payMethod = payMethod;
        this.date = date;
        this.costTypeId = costTypeId;
        this.comment = comment;
    }

    public Cost() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Double getSumma() {
        return summa;
    }

    public void setSumma(Double summa) {
        this.summa = summa;
    }

    public Integer getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(Integer payMethod) {
        this.payMethod = payMethod;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getCostTypeId() {
        return costTypeId;
    }

    public void setCostTypeId(Integer costTypeId) {
        this.costTypeId = costTypeId;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment == null ? null : comment.trim();
    }
}